import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Test {
	private ArrayList<Object> a;
	private LinkedList l;
	private Timer t1= new Timer();
	private Timer t2 = new Timer();
	private List list;
	public Test(){
		a = new ArrayList(1000000);
		l = new LinkedList();
	}
	public Test(List toBeTested){
		
	}
	public static void main(String[] args){
		Test test = new Test();
		test.t1.start();
		for (int i=0; i<1000000; i++){
			test.a.add(new Object());
		}
		System.out.println(test.t1.stop());
		test.t2.start();
		for (int i=0; i<1000000; i++){
			test.a.add(new Object());
		}
		System.out.println(test.t2.stop());
	}
}
